body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    background-color: #2c3e50;
    color: white;
    padding: 1rem;
    text-align: center;
}

h1 {
    margin: 0;
}

.navbar {
    background-color: #34495e;
    padding: 1rem;
    display: flex;
    justify-content: center;
}

.navbar a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    margin: 0 0.5rem;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.navbar a:hover {
    background-color: #4a6741;
}

.navbar a.active {
    background-color: #4a6741;
}

.card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    padding: 20px;
}

.card-header {
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.card-header h2 {
    margin: 0;
    color: #2c3e50;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.btn {
    background-color: #4a6741;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.btn:hover {
    background-color: #385538;
}

.btn-block {
    display: block;
    width: 100%;
}

.file-list {
    width: 100%;
    border-collapse: collapse;
}

.file-list th, .file-list td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.file-list th {
    background-color: #f8f9fa;
    font-weight: bold;
}

.file-list tr:hover {
    background-color: #f5f5f5;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.stat-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 20px;
    text-align: center;
}

.stat-value {
    font-size: 2em;
    font-weight: bold;
    color: #4a6741;
}

.stat-label {
    color: #666;
    margin-top: 5px;
}

.search-results {
    margin-top: 20px;
}

.result-item {
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 10px;
    background: white;
}

.result-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.result-score {
    background-color: #4a6741;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.9em;
}

.result-content {
    margin-bottom: 10px;
}

.result-meta {
    font-size: 0.9em;
    color: #666;
}

.drop-zone {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    margin-bottom: 20px;
    transition: border-color 0.3s;
}

.drop-zone.dragover {
    border-color: #4a6741;
    background-color: #f8f9fa;
}

.drop-zone p {
    margin: 0;
    color: #666;
}

.search-history-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.search-history-list li {
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.search-history-list li:last-child {
    border-bottom: none;
}

.history-query {
    font-weight: bold;
    color: #333;
}

.history-meta {
    font-size: 0.85em;
    color: #666;
    margin-top: 5px;
}

.hidden {
    display: none;
}

.message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 10px 20px;
    border-radius: 4px;
    color: white;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.message-success {
    background-color: #4a6741;
}

.message-error {
    background-color: #e74c3c;
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .navbar {
        flex-direction: column;
        align-items: center;
    }
    
    .navbar a {
        margin: 0.25rem 0;
    }
}